package com.ayoka.parenting.ui.launch;

import com.ayoka.parenting.bean.UserManager;
import com.ayoka.parenting.interf.RequestCallback;
import com.ayoka.parenting.mvp.BasePresenter;
import com.ayoka.parenting.mvp.BaseView;

/**
 * @ProjectName: MVPPlugin.
 * @ClassName: LaunchContract.
 * @Description: .
 * @Author: jincp.
 * @CreateDate: 2019/10/10 18:17.
 */
public class LaunchContract {

    interface View extends BaseView {

        void onRefreshTokenCallback(boolean isSuccess);

        void onCountDownTicktock(int seconds);

        void onCountDownCompleted();

        void onLoginTICCallback(boolean isSuccess);
    }

    interface Presenter extends BasePresenter<View> {
        void startCountDownTask();
    }

    interface Model {
        void refreshToken(LaunchPresenter launchPresenter, String userId, String refreshToken, RequestCallback<UserManager.TokenBean> requestCallback);
    }
}
